{% load static %}

{% block content %}
    <div class = "container">
        <div class = "row">
            <div class = "col-md-12">
                <h4>设备表</h4>
                <table class = "table table-bordered table-hover text-center">
                    <thead class="thead-light">
                        <tr>
                            <th scope = "col">#</th>
                            <th scope = "col">设备名称</th>
                            <th scope = "col">设备编号</th>
                            <th scope = "col">设备类型</th>
                            <th scope = "col">设备归属</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for d in devices_list %}
                            <tr>
                                <td>{{ forloop.counter }}</td>
                                <td>{{ d.name }}</td>
                                <td>{{ d.sn }}</td>
                                <td>{{ d.devicetype }}</td>
                                <td>{{ d.process }}</td>
                            </tr>
                        {% endfor %}

                    </tbody>
                </table>
            </div>
        </div>
    </div>



{% endblock %}